package com.lmf.spring5.config;


import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
//增强类
public class BookProxy {
    @After(value = "execution(* com.lmf.spring5.config.Book.buy(..))")
    public void show() {
        System.out.println("BookProxy show........");
    }
}
